package com.sdkj.dspservice.modules.sys.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sdkj.dspservice.common.base.service.CrudService;
import com.sdkj.dspservice.modules.sys.entity.User;

import java.util.List;

/**
 * 用户表service接口
 *
 * @author tm
 */
public interface UserService extends CrudService<User> {
    Integer getCountByLoginName(String loginName);
    User getByLoginName(String loginName);
    User getByCdpUserId(String cdpUserId);
    List<User> listByRoleId(String roleId);
    List<String> listIdByRoleEnName(String enName);
    List<User> listByRoleEnName(String enName);

    IPage<User> pageLink(IPage<User> objectPage, QueryWrapper<User> userQueryWrapper);
}
